<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('telefono/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id='.$form->getObject()->getId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>
  <table class="formulario" >
     <tbody>
      <?php echo $form->renderGlobalErrors() ?>
      <tr>
        <th><?php echo $form['numero']->renderLabel() ?></th>
        <td>
          <?php echo $form['numero']->renderError() ?>
          <?php echo $form['numero'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['descripcion']->renderLabel() ?></th>
        <td>
          <?php echo $form['descripcion']->renderError() ?>
          <?php echo $form['descripcion'] ?>
        </td>
      </tr>
        <tr style="display: none">
        <th><?php echo $form['contribuyente_id']->renderLabel() ?></th>
        <td>
          <?php echo $form['contribuyente_id']->renderError() ?>
          <?php echo $form['contribuyente_id'] ?>
        </td>
      </tr>
    </tbody>
     <tfoot>
      <tr>
        <td align="right" colspan="2">
          <?php echo $form->renderHiddenFields(false) ?>
          &nbsp;<a  style=" text-decoration:none; "href="<?php echo url_for('telefono/index') ?>">Volver</a>  
          <input type="submit" value="Aceptar" onmouseover="style.cursor=cursor"/>
        </td>
      </tr>
    </tfoot>
  </table>
</form>
